/**
 * 
 */
package it.uniroma3.engine.dictionary;

import it.uniroma3.engine.model.CandidateProteinName;
import it.uniroma3.engine.searcher.Searcher;

import java.util.LinkedList;
import java.util.List;

/**
 * @author Accosta Augusto
 * @author Lopez Elisabetta
 *
 */
public class ProteinNameIdentifierController {

	private Searcher searcher;
	
	/**
	 * Constructor
	 */
	public ProteinNameIdentifierController() {
		this.searcher = new Searcher();
	}
	
	/**
	 * This method search into the builded index the possible candidates that match the abbreviation result
	 * 
	 * @param abbreviationResult - the value to search inside the index
	 * @return the list of candidates proteins names
	 */
	public List<CandidateProteinName> discoverProtein(String abbreviationResult) {
		List<CandidateProteinName> candidatesList = new LinkedList<CandidateProteinName>();
		
		candidatesList = this.searcher.search(abbreviationResult);
		
		return candidatesList;
	}
	
}
